package com.gxxy.spring.kp03_aop.cls01_proxy.s2_dynamic.k01_interface;

import org.springframework.stereotype.Component;

@Component
public class TransactionManager {

	/**
	 * 事务的开启
	 */
	public void begin() {
		System.out.println("TransactionManager.begin()");
	}

	/**
	 * 事务的提交
	 */
	public void commit() {
		System.out.println("TransactionManager.commit()");
	}

	/**
	 * 事务的回滚
	 */
	public void rollback() {
		System.out.println("TransactionManager.rollback()");
	}

	/**
	 * 执行完毕
	 */
	public void finished() {
		System.out.println("TransactionManager.finished()");
	}

}
